<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%=basePath%>">

<meta charset="utf-8" />
<title></title>
<meta name="description" content="overview & stats" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="static/css/bootstrap.min.css" rel="stylesheet" />
<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
<link rel="stylesheet" href="static/css/font-awesome.min.css" />
<link rel="stylesheet" href="static/css/ace.min.css" />
<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
<link rel="stylesheet" href="static/css/ace-skins.min.css" />
<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
<!--提示框-->
<script type="text/javascript" src="static/js/jquery.tips.js"></script>
<style type="text/css">
ul, ol, li {
	list-style-type: none;
}

[class*="span"]{
	float:none!important;
}
</style>
<style media="print" type="text/css">
	.Noprint 
	{
		display: none;
	}
</style>
</head>

<body>
	<div id="centerOfMainFrame">
		<div class="page-content">
				<div class="col-xs-12">
					<div class="form-horizontal well" style="margin: 10px;10px;10px;10px;">
						<!--订单信息开始-->
						<h3 class="lighter smaller">订单信息</h3>
						<ul class="list-unstyled spaced2">
							<li>
								<i class="icon-circle green"></i>订单编号：<strong>${pd.order_no}</strong>
							</li>
							<li>
								<i class="icon-circle green"></i>订单状态：<strong class="text-warning bigger-110 orange">${pd.order_status_name}</strong>
							</li>
							<li>
								<i class="icon-circle green"></i>支付方式：<strong>${pd.pay_method_name}</strong> 
								<i class="icon-circle green"></i>支付流水号：<strong>${pd.trade_no}</strong>
							</li>
							<li>
								<i class="icon-circle green"></i>下单时间：<strong><fmt:formatDate value="${pd.order_create_time}" pattern="yyyy/MM/dd HH:mm:ss" /></strong> 
								<i class="icon-circle green"></i>支付时间：<strong><fmt:formatDate value="${pd.order_pay_time}" pattern="yyyy/MM/dd HH:mm:ss" /></strong> 
								<i class="icon-circle green"></i>超时时间：<strong><fmt:formatDate value="${pd.invalid_time}" pattern="yyyy/MM/dd HH:mm:ss" /></strong>
							</li>
							<li>
								<i class="icon-circle green"></i>下单手机号：<strong>${pd.mobile}</strong>
							</li>
							<li>
								<i class="icon-circle green"></i>
								订单金额：<strong> ￥<font color="red"><fmt:formatNumber type="number" value="${pd.amount} " maxFractionDigits="2"/></font></strong>
							</li>
							<li>
							<i class="icon-circle green"></i>
								处理原因：<strong>${pd.reason}</strong> 
							</li>
						</ul>
						<hr>
						<!--订单信息结束-->
						<!--商品信息开始-->
						<%-- <h3 class="lighter smaller">商品信息</h3>
						<div class="widget-box transparent">
							<div class="widget-body">
								<div class="widget-main no-padding">
									<table class="table table-bordered table-striped">
										<thead class="thin-border-bottom">
											<tr>
												<th><i class="icon-caret-right blue"></i> 名称</th>
												<th><i class="icon-caret-right blue"></i> 数量</th>
												<th class="hidden-480"><i class="icon-caret-right blue"></i> 总价</th>
											</tr>
										</thead>
										<tbody>
										<c:choose>
											<c:when test="${not empty varList}">
												<c:forEach items="${varList}" var="var" varStatus="vs">
											<tr>
												<td>${var.goods_name}</td>
												<td>
													${var.goods_quantity}
													<c:choose>
														<c:when test="${var.goods_type eq 1 }">
															瓶
														</c:when>
														<c:when test="${var.goods_type eq 2 }">
															支
														</c:when>
														<c:otherwise>
															个
														</c:otherwise>
													</c:choose>
												
												</td>
												<td class="hidden-480"><b class="green">￥<fmt:formatNumber type="number"  maxFractionDigits="2" value="${var.goods_paid_amts}" /></b>
												</td>
											</tr>
											</c:forEach>
											</c:when>
											<c:otherwise>
												<tr class="main_info">
													<td colspan="100" class="center" >没有相关数据</td>
												</tr>
											</c:otherwise>
										</c:choose>
											
										</tbody>
									</table>
								</div>
							</div>
						</div> 
						<hr>--%>
						<!--消费信息结束-->
						<div class="center">
							<a class="btn btn-gray Noprint" onclick="top.Dialog.close();">关闭</a>
							<a class="btn btn-primary Noprint" onclick="window.print()">打印</a>
						</div>

					</div>
				</div>
		</div>
	</div>
	<input type="hidden" id="m_id" name="m_id" value="${pd.m_id}" />
	<div id="centerOfMainFrame2" class="center" style="display: none">
		<br />
		<br />
		<br />
		<img src="static/images/jzx.gif" style="width: 50px;" /><br />
		<h4 class="lighter block green"></h4>
	</div>
</body>

<script type="text/javascript">
	$(top.hangge());

	//保存
	function save() {
		$("#Form").submit();
		$("#centerOfMainFrame").hide();
		$("#centerOfMainFrame2").show();
	}
</script>

</html>